<?php if (empty ( $this->_var['order_query'] )): ?>
<div class="title-div"><img src="themes/default_old/images/order_query.gif" alt="" width="158" height="39" /></div>
<script>var invalid_order_sn = "<?php echo $this->_var['lang']['invalid_order_sn']; ?>"</script>
<div class="content-div" style="text-align:center;"><form name="ecsOrderQuery">
<input type="text" name="order_sn" /><br />
<input type="button" value="<?php echo $this->_var['lang']['query_order']; ?>" onclick="orderQuery()" />
</form></div>
<div class="content-div" id="ECS_ORDER_QUERY">
<?php else: ?>
  <table width="100%" cellpadding="2" cellspacing="0" border="0">
    <?php if ($this->_var['order_query']['user_id']): ?>
    <tr align="left">
      <th width="30%" style="border-top: 1px dashed #DADADA;font-size:10px"><?php echo $this->_var['lang']['order_number']; ?></th>
      <td style="font-size:9px;border-top: 1px dashed #DADADA;"><a href="user.php?act=order_detail&order_id=<?php echo $this->_var['order_query']['order_id']; ?>" ><?php echo $this->_var['order_query']['order_sn']; ?></a></td>
    </tr>
    <?php else: ?>
    <tr align="left">
      <th width="30%" style="border-top: 1px dashed #DADADA;font-size:10px"><?php echo $this->_var['lang']['order_number']; ?></th>
      <td style="font-size:9px;border-top: 1px dashed #DADADA;"><?php echo $this->_var['order_query']['order_sn']; ?></td>
    </tr>
    <?php endif; ?>
    <tr align="left">
      <th width="30%" style="border-top: 1px dashed #DADADA;font-size:10px"><?php echo $this->_var['lang']['order_status']; ?></th>
      <td style="font-size:9px;border-top: 1px dashed #DADADA;"><?php echo $this->_var['order_query']['order_status']; ?></td>
    </tr>
    <?php if ($this->_var['order_query']['invoice_no']): ?>
    <tr align="left">
      <th width="30%" style="border-bottom: 1px dashed #DADADA;font-size:10px"><?php echo $this->_var['lang']['consignment']; ?></th>
      <td style="font-size:9px;border-bottom: 1px dashed #DADADA;"><?php echo $this->_var['order_query']['invoice_no']; ?></td>
    </tr>
    <?php endif; ?>
    <?php if ($this->_var['order_query']['shipping_date']): ?>
    <tr align="left">
      <th width="30%" style="border-bottom: 1px dashed #DADADA;font-size:10px"><?php echo $this->_var['lang']['shipping_date']; ?></th>
      <td style="font-size:9px;border-bottom: 1px dashed #DADADA;"><?php echo $this->_var['order_query']['shipping_date']; ?></td>
    </tr>
    <?php endif; ?>
  </table>
<?php endif; ?>
</div>
